<script lang="ts" setup>
import { useXxxStore } from '../store';

// 1. 调用useCounerStore
const store = useXxxStore();
// 2. 点语法获取count
</script>

<template>
  <div>我是购物车: {{ store.count }}</div>
  <button @click="store.addFn">++</button>
</template>
